package com.dubbo.user.service.impl;

import com.dubbo.user.dao.UserDao;
import com.dubbo.user.dto.request.UserAddRequest;
import com.dubbo.user.dto.response.UserAddResponse;
import com.dubbo.user.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author dongdingzhuo
 * @description 添加用户
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    /**
     * 添加用户
     *
     * @param request
     * @return
     */
    @Override
    public UserAddResponse userAdd(UserAddRequest request) {
        return userDao.userAdd(request);
    }
}
